FROM nginx:1.14.2-alpine

ARG X_BASE_DOMAIN

COPY ./nginx/conf.d/ /etc/nginx/conf.d/

RUN envsubst '${X_BASE_DOMAIN}' < /etc/nginx/conf.d/sites.conf.template > /etc/nginx/conf.d/default.conf

